-- GENERATED SPELL FOR [River Crocolisk] --


function spell0_1150(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17257,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1150', 544, 1)
end

function spell1_1150(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1150', 0, 1)
end

function spell2_1150(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1150', 8000, 1)
end

function Sorts_1150(pUnit, Event)
local choix_sorts_1150 = math.random(0, 2)
if choix_sorts_1150 == 0 then
pUnit:RegisterEvent('spell0_1150', 1, 1)
end
if choix_sorts_1150 == 1 then
pUnit:RegisterEvent('spell1_1150', 1, 1)
end
if choix_sorts_1150 == 2 then
pUnit:RegisterEvent('spell2_1150', 1, 1)
end
end

function mob1150_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1150', math.random(1500, 3000), 1)
end

function mob1150_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1150_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1150_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1150, 1, 'mob1150_Action')
RegisterUnitEvent(1150, 2, 'mob1150_Leave')
RegisterUnitEvent(1150, 3, 'mob1150_Kill')
RegisterUnitEvent(1150, 4, 'mob1150_Die')
